 /* To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jhave.client;

import javax.swing.*;
import java.util.*;
import java.awt.*;
import org.jdom.Element;

/**
 *
 * @author bosmak40
 */
public class ClickingArea_Default_Line_Element extends JHAVE_Abstract_ClickingArea_Element implements JHAVE_Element{


    ClickingArea_Default_Line_Element(Element child, JPanel returnedPanel, Vector components, int mode, boolean clickingArea){
        super(child, returnedPanel, components, mode, clickingArea);
    }



     /**
     * Adds ClickArea element to panel and to components vector.
     *
     */
    public void addElementToPanel(){
        JPanel panel = new JPanel((new GridLayout(7,0)));

        ClickArea clickArea =
            new ClickArea(panel,mode); // A helper class defined below

        this.components.add(clickArea);
        this.returnedPanel.add(clickArea);
    }

}